
import copy;
L1=[1,2,3,['a','b',['a1','a2','a3']]];
L2=copy.deepcopy(L1);
L2[-1][0]='hi';
L2[-1][2][0]='X1'
print(L1);
print(L2);